cmake_minimum_required(VERSION 3.16)
set(WORKSPACE_PATH ${CMAKE_CURRENT_LIST_DIR})
# Peripheral Drivers
set(TARGET_C_SOURCES
    ${WORKSPACE_PATH}/Src/queue_linked_list.c
    ${WORKSPACE_PATH}/Src/queue_array.c
)
# Peripheral headers
set(TARGET_C_INCLUDES
    ${WORKSPACE_PATH}/Inc
)
# generate the user library
add_library(user_lib STATIC ${TARGET_C_SOURCES})
# Shared sources, includes and definitions
target_include_directories(user_lib PUBLIC ${TARGET_C_INCLUDES})